package com.chat.openfeign.client;

import com.chat.common.dto.AuthRequestDTO;
import com.chat.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wei kunJie
 * @date 2024/4/7 22:52:43
 */
@FeignClient(value = "login-service")//在Nacos中注册的应用名
public interface AuthService {
    @PostMapping("/auth/auth/validate_token")
    R validateToken(@RequestBody AuthRequestDTO authRequestDTO );
}
